package edu.hcmiu.portal.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.List;


/**
 * <a href="hook_categorySoap.java.html"><b><i>View Source</i></b></a>
 *
 * <p>
 * ServiceBuilder generated this class. Modifications in this class will be
 * overwritten the next time is generated.
 * </p>
 *
 * <p>
 * This class is used by
 * <code>edu.hcmiu.portal.service.http.hook_categoryServiceSoap</code>.
 * </p>
 *
 * @author Brian Wing Shun Chan
 *
 * @see edu.hcmiu.portal.service.http.hook_categoryServiceSoap
 *
 */
public class hook_categorySoap implements Serializable {
    private long _catID;
    private String _catName;
    private String _catDescription;

    public hook_categorySoap() {
    }

    public static hook_categorySoap toSoapModel(hook_category model) {
        hook_categorySoap soapModel = new hook_categorySoap();

        soapModel.setCatID(model.getCatID());
        soapModel.setCatName(model.getCatName());
        soapModel.setCatDescription(model.getCatDescription());

        return soapModel;
    }

    public static hook_categorySoap[] toSoapModels(hook_category[] models) {
        hook_categorySoap[] soapModels = new hook_categorySoap[models.length];

        for (int i = 0; i < models.length; i++) {
            soapModels[i] = toSoapModel(models[i]);
        }

        return soapModels;
    }

    public static hook_categorySoap[][] toSoapModels(hook_category[][] models) {
        hook_categorySoap[][] soapModels = null;

        if (models.length > 0) {
            soapModels = new hook_categorySoap[models.length][models[0].length];
        } else {
            soapModels = new hook_categorySoap[0][0];
        }

        for (int i = 0; i < models.length; i++) {
            soapModels[i] = toSoapModels(models[i]);
        }

        return soapModels;
    }

    public static hook_categorySoap[] toSoapModels(List<hook_category> models) {
        List<hook_categorySoap> soapModels = new ArrayList<hook_categorySoap>(models.size());

        for (hook_category model : models) {
            soapModels.add(toSoapModel(model));
        }

        return soapModels.toArray(new hook_categorySoap[soapModels.size()]);
    }

    public long getPrimaryKey() {
        return _catID;
    }

    public void setPrimaryKey(long pk) {
        setCatID(pk);
    }

    public long getCatID() {
        return _catID;
    }

    public void setCatID(long catID) {
        _catID = catID;
    }

    public String getCatName() {
        return _catName;
    }

    public void setCatName(String catName) {
        _catName = catName;
    }

    public String getCatDescription() {
        return _catDescription;
    }

    public void setCatDescription(String catDescription) {
        _catDescription = catDescription;
    }
}
